package com.wzp;

import com.wzp.spring.*;

@WzpComponent("orderService")
@WzpScope("prototype")
public class OrderService implements WzpBeanNameAware, WzpInitializingBean {

    @WzpAutowired
    private UserService userService;

    private String beanName;

    @Override
    public void afterPropertiesSet() {
        System.out.println("初始化");
    }

    @Override
    public void setBeanName(String name) {
        System.out.println(name);
        this.beanName = name;
    }

    public UserService getUserService() {
        return userService;
    }
}
